package Book;

public class BookList {
    private Book[] books = new Book[10];
    private int UsedBookList;
    public int len = books.length;

    public BookList(){
        this.books[0] = new Book("三国演义","罗贯中",10,"小说");
        this.books[1] = new Book("西游记","吴承恩",11,"小说");
        this.books[2] = new Book("水浒传","施耐庵",12,"小说");
        this.books[3] = new Book("红楼梦","曹雪芹",13,"小说");
        this.UsedBookList = 4;
    }

    public int getUsedBookList() {
        return UsedBookList;
    }

    public void setUsedBookList(int usedBookList) {
        UsedBookList = usedBookList;
    }
    public Book GetBook(int pos){
        return books[pos];
    }

    public void setBook(int pos, Book book){
        this.books[pos] = book;
    }
}

